import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        List: [],
        info:{},
        replys:[],
        videoinfo:{}
    },
    getters: {},
    mutations: {
        update(state, newVal) {
            state.List = newVal
        },
        updateInfo(state, newVal) {
            state.info=newVal
        },
        updateReplys(state, newVal) {
            state.replys=newVal
        },
        updateVideoInfo(state, newVal){
            state.videoinfo=newVal;
            console.log("test")
        }
    },
    actions: {},
    modules: {}
})
